package stylistcrm.core.services.order.enums;

public enum EnumDeliveryStatus {

	UN_DELIVERY("0","未发货"),
	DELIVERY("1","已发货");

	private String code;

	private String desc;

	private EnumDeliveryStatus(String code, String desc){
		this.code=code;
		this.desc=desc;
	}
	
	public String getCode(){
		return code;
	}
	
	public String getDesc(){
		return desc;
	}
	
	public static EnumDeliveryStatus getEnum(String code) {

        for (EnumDeliveryStatus enumValue : EnumDeliveryStatus.values()) {
            if (enumValue.getCode().equals(code))
                return enumValue;
        }

        return null;
    }
}
